home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / CIRC3.PAK / CIRC3PPG.CPP < prev    next >
C/C++ Source or Header  |  1997-05-06  |  3KB  |  94 lines

  1. // circ3ppg.cpp : Implementation of the CCirc3PropPage property page class.
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "circ3.h"
  15. #include "circ3ppg.h"
  16.  
  17. #ifdef _DEBUG
  18. #undef THIS_FILE
  19. static char BASED_CODE THIS_FILE[] = __FILE__;
  20. #endif
  21.  
  22.  
  23. IMPLEMENT_DYNCREATE(CCirc3PropPage, COlePropertyPage)
  24.  
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // Message map
  28.  
  29. BEGIN_MESSAGE_MAP(CCirc3PropPage, COlePropertyPage)
  30.     //{{AFX_MSG_MAP(CCirc3PropPage)
  31.     // NOTE - ClassWizard will add and remove message map entries
  32.     //    DO NOT EDIT what you see in these blocks of generated code !
  33.     //}}AFX_MSG_MAP
  34. END_MESSAGE_MAP()
  35.  
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // Initialize class factory and guid
  39.  
  40. IMPLEMENT_OLECREATE_EX(CCirc3PropPage, "CIRC3.Circ3PropPage.1",
  41.     0x9dbafcd3, 0x592f, 0x101b, 0x85, 0xce, 0x0, 0x60, 0x8c, 0xec, 0x29, 0x7b)
  42.  
  43.  
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CCirc3PropPage::CCirc3PropPageFactory::UpdateRegistry -
  46. // Adds or removes system registry entries for CCirc3PropPage
  47.  
  48. BOOL CCirc3PropPage::CCirc3PropPageFactory::UpdateRegistry(BOOL bRegister)
  49. {
  50.     if (bRegister)
  51.         return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  52.             m_clsid, IDS_CIRC3_PPG);
  53.     else
  54.         return AfxOleUnregisterClass(m_clsid, NULL);
  55. }
  56.  
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CCirc3PropPage::CCirc3PropPage - Constructor
  60.  
  61. CCirc3PropPage::CCirc3PropPage() :
  62.     COlePropertyPage(IDD, IDS_CIRC3_PPG_CAPTION)
  63. {
  64.     //{{AFX_DATA_INIT(CCirc3PropPage)
  65.     m_caption = _T("");
  66.     m_circleOffset = 0;
  67.     m_circleShape = FALSE;
  68.     m_note = _T("");
  69.     //}}AFX_DATA_INIT
  70. }
  71.  
  72.  
  73. /////////////////////////////////////////////////////////////////////////////
  74. // CCirc3PropPage::DoDataExchange - Moves data between page and properties
  75.  
  76. void CCirc3PropPage::DoDataExchange(CDataExchange* pDX)
  77. {
  78.     //{{AFX_DATA_MAP(CCirc3PropPage)
  79.     DDP_Text(pDX, IDC_CAPTION, m_caption, _T("Caption") );
  80.     DDX_Text(pDX, IDC_CAPTION, m_caption);
  81.     DDP_Text(pDX, IDC_CIRCLEOFFSET, m_circleOffset, _T("CircleOffset") );
  82.     DDX_Text(pDX, IDC_CIRCLEOFFSET, m_circleOffset);
  83.     DDP_Check(pDX, IDC_CIRCLESHAPE, m_circleShape, _T("CircleShape") );
  84.     DDX_Check(pDX, IDC_CIRCLESHAPE, m_circleShape);
  85.     DDP_Text(pDX, IDC_NOTE, m_note, _T("Note") );
  86.     DDX_Text(pDX, IDC_NOTE, m_note);
  87.     //}}AFX_DATA_MAP
  88.     DDP_PostProcessing(pDX);
  89. }
  90.  
  91.  
  92. /////////////////////////////////////////////////////////////////////////////
  93. // CCirc3PropPage message handlers
  94.